Virtual file system
The fs_*
functions are used to manipulate a virtual file system. Files saved here should have paths relative to the data folder, and use backslashes as the directory separator. They will take precedence over files stored in the normal data folder. They will also be saved into save games if you set a flag for them using fs_resize(fileId, -1)
, so be avoid creating large files. Using fs_copy
followed by fs_read_xxx
, you can read the contents of existing files.
Функции
- fs_copy
- fs_create
- fs_delete
- fs_find
- fs_pos
- fs_read_byte
- fs_read_float
- fs_read_int
- fs_read_short
- fs_resize
- fs_seek
- fs_size
- fs_write_bstring
- fs_write_byte
- fs_write_float
- fs_write_int
- fs_write_short
- fs_write_string
fs_copy
int fs_copy(string path, string source)
fs_create
int fs_create(string path, int size)
fs_delete
void fs_delete(int id)
fs_find
int fs_find(string path)
fs_pos
int fs_pos(int id)
fs_read_byte
int fs_read_byte(int id)
fs_read_float
float fs_read_float(int id)
fs_read_int
int fs_read_int(int id)
fs_read_short
int fs_read_short(int id)
fs_resize
void fs_resize(int id, int size)
fs_seek
void fs_seek(int id, int pos)
fs_size
int fs_size(int id)
fs_write_bstring
void fs_write_bstring(int id, string data)
fs_write_byte
void fs_write_byte(int id, int data)
fs_write_float
void fs_write_float(int id, int data)
fs_write_int
void fs_write_int(int id, int data)
fs_write_short
void fs_write_short(int id, int data)
fs_write_string
void fs_write_string(int id, string data)